package com.nti56.springboot.mapper.tmsmapper;

import java.util.List;
import java.util.Map;

import com.nti56.springboot.model.Organization;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.nti56.springboot.mapper.BaseMapper;
import com.nti56.springboot.model.Module;

@Mapper
public interface ModuleMapper extends BaseMapper<Module>{
	
	public void deleteByParentId(String moduleId);
	
	public void insertModuleRole(Map map);
	
	public void insertOrgRole(Map map);
	
	public void deleteModuleRole(Map map);
	
	public void deleteOrgRole(Map map);
	
	public List<Module> getResourceList(Map map);
	
	public List<Organization> getAuthDataList(Map map);
	
	public List<Module> findAuthResource(Map map);
	
	public List<String> getDataAuthOrgCodeList(Map map);
	
	public Module getByModuleCode(@Param(value = "moduleCode") String moduleCode);
	
}
